//////////////////////////////////////////////////////////////////////////
///	\file:	ViewCommand.h
///	Copyright (MingYou) 2009 - All Rights Reserved
///	Author:	Robert.Ma
///	Date:	[2009/07/02]
///	Description:
///		
//////////////////////////////////////////////////////////////////////////
#pragma once


//////////////////////////////////////////////////////////////////////////
//	Base command.
typedef enum vmMessage
{
	VM_DRAW			= 2,	//	wParam is pointer of IMemoryGrapics.
	VM_ACTIVE		= 5,	//	wParam is type of BOOL, TRUE means active, FALSE means inactive.
	VM_KEYDOWN		= 10,	//	wParam is code of key.
	VM_KEYUP		= 11,	//	wParam is code of key.
	VM_LBUTTON_DOWN	= 15,	//	xPos = LOWORD(lParam); yPos = HIWORD(lParam);
	VM_LBUTTON_UP	= 16,	//	xPos = LOWORD(lParam); yPos = HIWORD(lParam);
	VM_RBUTTON_DOWN	= 17,	//	xPos = LOWORD(lParam); yPos = HIWORD(lParam);
	VM_RBUTTON_UP	= 18,	//	xPos = LOWORD(lParam); yPos = HIWORD(lParam);
	VM_MOUSE_MOVE	= 19,	//	xPos = LOWORD(lParam); yPos = HIWORD(lParam);
}VM_MESSAGE;

